﻿Imports System.Reflection
Imports Mystery

''' <summary>
''' control for a property
''' </summary>
''' <remarks></remarks>
Public Interface IPropertyControl

    ReadOnly Property label As String

    ''' <summary>
    ''' in update the content AND the value, taking it frm the content
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Property content As IContent

    Property property_info As PropertyInfo

    Property value As Object

    ReadOnly Property wished_height As GridLength

    ''' <summary>
    ''' set the value in the content object and it return it to be saved
    ''' </summary>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function setInContent() As IEnumerable(Of IContent)

    Event valueChanged()

End Interface